<?php

/**
 * @author Eureka
 */
class CollectionItems extends CActiveRecord
{

	public static function model($className = __CLASS__)
	{
		return parent::model($className);
	}

	public function tableName()
	{
		return 'collection_items';
	}

	public function relations()
	{
		return array(
			'items' => array(
				self::BELONGS_TO, 'Items', 'item_id'
			),
			'collections'=> array(
				self::BELONGS_TO, 'Collections', 'collection_id'
			)
		);
	}

}